package com.fanshuai.jmx.mbean;

/**
 * MBean实现类，存储监控数据
 */
public class Hello implements HelloMBean {
    private String name;
    private int age;


    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int getAge() {
        return age;
    }

    @Override
    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public void hello() {
        System.out.println("name=" + name);
    }
}
